Using the form below, you can link the authors listed in PubMed to people registered in the MethodBox.<br/><br/>
MethodBox will try and suggest the correct person based on the author's name. If this suggestion is incorrect, please select the correct person from the dropdown menu, or choose "None" if this person isn't a member of MethodBox.<br/>

<div style="margin:1em; float: left; width:45%" class="box_editing_inner">
  <h4>Unassociated authors</h4>
  <table>
    <tr>
      <th>Author name</th>
      <th>MethodBox person</th>
    </tr>
    <% authors.each do |author| %>
    <tr>    
      <td><%= author.last_name + " " + author.first_name -%></td>
      <td><select name="author[<%= author.id -%>]"><option value="">None</option></select></td>
    </tr>
    <% end %>
  </table>
</div>

<div style="margin:1em; float: left; width:35%" class="box_editing_inner">
  <h4>Associated authors</h4>
  <ul class="related_asset_list">
  <% @publication.asset.creators.each do |creator| %>
    <li><%= (link_to get_object_title(creator), show_resource_path(creator)) %></li>
  <% end %>
  </ul>
</div>

<br style="clear: both"/>

<ul class="sectionIcons">
  <li><%= image_tag_for_key('destroy', disassociate_authors_publication_url(@publication), "Disassociate All Authors", {:confirm => "This will clear the publication of all links to MethodBox members, are you sure you wish to do this?", :method => :post}, "Disassociate All Authors") -%></li>
</ul>